package com.aspose.cells.a.d;

import com.aspose.cells.Color;
import java.util.Stack;

public class zcb {
   private zbz a;
   private zar b;
   private Stack c;
   private zas d;
   private com.aspose.cells.b.a.b.zq e;
   private com.aspose.cells.b.a.b.zo f;

   public zcb(zbz var1) throws Exception {
      this.a = var1;
      this.b = new zar(this);
      this.e = zaq.a();
      this.c = new Stack();
      if (this.a.c()) {
         this.d = new zas(true);
         this.i();
      } else {
         this.d = new zas(false);
         this.j();
      }

   }

   public void a() {
      this.c.push(this.b);
      this.b = this.b.a();
   }

   public void b() {
      this.b = (zar)this.c.pop();
   }

   public void a(com.aspose.cells.b.a.b.zo var1) {
      this.e.a(var1);
   }

   public void a(com.aspose.cells.b.a.b.zt var1) {
      this.e.a(var1);
   }

   public zbz c() {
      return this.a;
   }

   public zar d() {
      return this.b;
   }

   public com.aspose.cells.b.a.b.zq e() {
      return this.e;
   }

   public void a(com.aspose.cells.b.a.b.zq var1) {
      this.e = var1;
   }

   public com.aspose.cells.b.a.b.zo f() {
      return this.f;
   }

   public void b(com.aspose.cells.b.a.b.zo var1) {
      this.f = var1;
   }

   public zas g() {
      return this.d;
   }

   private void a(Color var1) throws Exception {
      zbp var2 = new zbp();
      if (var1.isEmpty()) {
         var2.a(1);
      } else {
         var2.a(var1);
      }

      this.d.a(var2);
   }

   private void b(Color var1) throws Exception {
      zbt var2 = new zbt();
      if (var1.isEmpty()) {
         var2.a(5);
      } else {
         var2.b(var1);
      }

      this.d.a(var2);
   }

   private void a(String var1) throws Exception {
      zbr var2 = new zbr();
      var2.a(var1);
      this.d.a(var2);
   }

   private void h() throws Exception {
      zbq var1 = new zbq();
      this.d.a(var1);
   }

   private void i() throws Exception {
      this.a(Color.getWhite());
      this.a(Color.getBlack());
      this.a(Color.fromArgb(128, 128, 128));
      this.a(Color.fromArgb(64, 64, 64));
      this.a(Color.getBlack());
      this.a(Color.getEmpty());
      this.b(Color.getWhite());
      this.b(Color.getBlack());
      this.b(Color.getEmpty());
      this.b(Color.getEmpty());
      this.a("MS Sans Serif");
      this.a("Courier");
      this.a("MS Sans Serif");
      this.a("Tahoma");
      this.a("MS Sans Serif");
      this.d.a(new zbs());
      this.a("MS Sans Serif");
      this.a("MS Sans Serif");
      this.h();
      this.h();
   }

   private void j() throws Exception {
      for(long var1 = 0L; (var1 & 4294967295L) < (long)this.a.l(); ++var1) {
         this.d.a((zbh)null);
      }

   }
}
